<?php

namespace App\Models;



class Role extends Base
{
    /**
     * 关联权限表
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany 多对多模型关联关键字
     */
    public function nodes()
    {
        return $this->belongsToMany(Node::class,'role_nodes','role_id','node_id');
    }
}
